package com.ruoyi.framework.config;

import com.ruoyi.common.utils.message.Message;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version :
 * @program: shipCargoEasyLink
 * @description:
 * @author: 周爱鸿
 * @create: 2020-08-31 14:10
 **/
@Configuration
public class MessageConfig {

	@Value("${message.accessKeyId}")
	private String accessKeyId ;
	@Value("${message.accessKeySecret}")
	private String accessKeySecret ;
	@Value("${message.templateCode}")
	private String templateCode ;
	@Value("${message.signName}")
	private String signName ;

	@Bean
	public Message message(){
		return new Message(accessKeyId,accessKeySecret,templateCode,signName);
	}
}
